#include <db.h>
#include "svn_fs.h"

typedef struct
{
	DB_ENV *env;
	
	DB *chimaera_user;
	DB *chimaera_certificate;
	DB *chimaera_project;
	DB *chimaera_message_index;
	DB *chimaera_message;
	DB *chimaera_file;
	DB *chimaera_group;
	DB *chimaera_user_index;

} chimaera_tables_t;

/** Command handler, used by svn_ra_svn_handle_commands(). */
typedef int(*command_handler)(chimaera_tables_t *catable, char *num);

/** Command table, used by svn_ra_svn_handle_commands().
*/
typedef struct cmd_entry_t
{
	/** Name of the command */
	const char *cmdname;

	/** Handler for the command */
	command_handler handler;

} cmd_entry_t;

int help(chimaera_tables_t *catable, char* num);

/* use ctable to construct a svn_fs_t
* then can use current put/set functions
*/
int
constrct_fs_from_ctable(chimaera_tables_t *catable,svn_fs_t **fs,apr_pool_t *pool);
